<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
		
	</head>
	<body>
		<div id="app">
			
		<table border="1" >
			<thead>
				<tr>
					<th>序号</th>
					<th>书名</th>
					<th>日期</th>
					<th>单价</th>
					<th>数量</th>
					<th>操作 </th>
				</tr>
			</thead>
			<tbody>
				<tr v-for="item of books">
					<td >{{item.id}}</td>
					<td >{{item.name}}</td>
					<td >{{item.price}}</td>
					<td >{{item.tdate}}</td>
					<td >{{item.count}}</td>
					<td ><button type="button" >编辑</button>
					<button type="button" >删除</button></td>
				</tr>
			</tbody>
			</table>
		</div>
			<script type="text/javascript">
				let app=new Vue({
					el:"#app",
					data:{
					 books : [
							{id: 1, name: 'Java从入门到放弃', price: 80, tdate: '2020-07-01', count: 1, account: "hehe"},
							{id: 2, name: 'Vue从入门到放弃', price: 90, tdate: '2020-07-02', count: 1, account: "haha"},
							{id: 3, name: 'Mysql从入门到放弃', price: 100.01, tdate: '2020-07-03', count: 1, account: "hehe"},
							{id: 4, name: '啥都从入门到放弃', price: 70.00, tdate: '2020-07-04', count: 1, account: "haha"},
						]
					}
				});
				
			</script>
	</body>
</html>
